/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('fUserOutPointsRelation', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true,
      field: 'id'
    },
    userId: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      field: 'user_id'
    },
    createTime: {
      type: DataTypes.DATE,
      allowNull: true,
      field: 'create_time'
    },
    finished: {
      type: DataTypes.INTEGER(1),
      allowNull: true,
      defaultValue: '0',
      field: 'finished'
    },
    outPonits: {
      type: DataTypes.INTEGER(60),
      allowNull: true,
      defaultValue: '0',
      field: 'out_ponits'
    },
    fees: {
      type: DataTypes.INTEGER(60),
      allowNull: true,
      defaultValue: '0',
      field: 'fees'
    },
    invalid: {
      type: DataTypes.INTEGER(1),
      allowNull: true,
      defaultValue: '0',
      field: 'invalid'
    }
  }, {
    tableName: 'f_user_out_points_relation'
  });
};
